package com.foxmail.aroundme.youtubedemo.fmgIntoListView;

import android.app.Activity;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.os.Bundle;

import com.foxmail.aroundme.youtubedemo.R;

/**
 * Created by gzl on 2016/10/26.
 *
 * 为了满足Fragment里面嵌套ListView的实现
 */

public class FrgListViewAty extends Activity{
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.fragment_into_listview);

        FragmentManager manager = getFragmentManager();
        FragmentTransaction transaction = manager.beginTransaction();
        transaction.add(R.id.replace_listview, new FrgmemtIntoListView());
        transaction.commitAllowingStateLoss();
    }
}
